package com.web.portal.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
public class LogoutController {
	@RequestMapping(value="/logout.do")
	public String logOut(HttpServletRequest request){
		final Logger LOG= Logger.getLogger(LogoutController.class);
		LOG.debug("Invalidating session......................");
		 request.getSession().invalidate();
		
		return "redirect:/login.do";
		
	}
}
